package cn.bytengine.stem.sdso;

import cn.bytengine.stem.contexts.Context;

public interface ClusterManager {

    ClusterHost joinGroup(Context context);
    void levelGroup(Context context);

    String joinHost(ClusterHost clusterHost, Context context);
    void leaveHost(String hostId);

    void sendMessage(String targetHostId, String content);
    void sendMessage(String targetHostId, byte[] content);
    void sendMessage(ClusterMessage clusterMessage);
}
